package com.itheima.Demo;

/**
 * @auther Macrydy
 * @date 2020/7/2 15:14
 */
public class Test {
    public static void main(String[] args) {

        addTest(new AddAble() {
            @Override
            public int add(int x, int y) {
                return x+y;
            }
        });
    }

    public static void addTest(AddAble addAble){
        int add = addAble.add(1, 2);
        System.out.println(add);
    }
}
